package cc.yaomm.common.basic.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * <p>@Description : 常用状态枚举 </p>
 * <p>@Author : QiLin.Xing </p>
 * <p>@Date : 2021/6/9 9:02 </p>
 */
@Getter
public enum StatusEnum implements SuperEnum<StatusEnum, Integer> {
    /**
     * 正常
     */
    NORMAL(1, "正常"),
    /**
     * 锁定(冻结)
     */
    LOCKED(2, "锁定"),
    /**
     * 删除
     */
    DELETE(0, "删除");

    @EnumValue
    private Integer value;

    private String name;

    StatusEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public StatusEnum[] enums() {
        return values();
    }
}
